﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BusinessEntities.Model
{
    /// <summary>
    /// A hall where events take place.
    /// </summary>
    /// <seealso cref="Event"/>
    public class Hall
    {
        [Key]
        public int ID { get; set; }
        public string Street { get; set; }
        public int Number { get; set; }
        public string Name { get; set; }
        /// <summary>
        /// The maximum amount of people allowed in an event.
        /// </summary>
        public int MaxAllowed { get; set; }

        //City
        public int? CityID { get; set; }
        [ForeignKey("CityID")]
        public virtual City City { get; set; }
    }
}
